Change in openvpn[master]: openvpnserv: Disallow stdin as config unless user is authorized
A message that is not in the archive (sent off-list or not yet received): gerrit.1762180786000.I356faeebfade1eed9b40d6700b13621c357ec5ac@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email
to review the following change.
Change subject: openvpnserv: Disallow stdin as config unless user is authorized
......................................................................
openvpnserv: Disallow stdin as config unless user is authorized
Reported by: <[email protected]...>
---
M src/openvpnserv/validate.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1343/1
src/openvpnserv/validate.c +5 -0
@@ -68,6 +68,11 @@const WCHAR *config_file =NULL ;WCHAR config_dir[MAX_PATH ]; +/* fname = stdin is special: do not treat it as a relative path */ +if (wcscmp (fname,L"stdin" ) ==0 ) + { +return FALSE; + }/* convert fname to full path */ if (PathIsRelativeW (fname)) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Gerrit-Change-Number: 1343
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos, selvanair.
cron2 has posted comments on this change by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email )
Change subject: openvpnserv: Disallow stdin as config unless user is authorized
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Gerrit-Change-Number: 1343
Gerrit-PatchSet: 1
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Attention: selvanair <[email protected]...>
Gerrit-Comment-Date: Mon, 03 Nov 2025 14:59:47 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 openvpnserv: Disallow stdin as config unless user is authorized
In reply to a message not in the archiveFrom: Selva Nair <[email protected]...>
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpnserv/validate.c +5 -0
@@ -68,6 +68,11 @@const WCHAR *config_file =NULL ;WCHAR config_dir[MAX_PATH ]; +/* fname = stdin is special: do not treat it as a relative path */ +if (wcscmp (fname,L"stdin" ) ==0 ) + { +return FALSE; + }/* convert fname to full path */ if (PathIsRelativeW (fname)) {
[Openvpn-devel] [PATCH applied] Re: openvpnserv: Disallow stdin as config unless user is authorized
Thanks. I have not tested this beyond "stare at code", but this is easy enough (and I have verified the counterpart in openvpn/options.c, which does a streq() with "stdin", so it needs to be an exact match, not a substring or anything else).
Your patch has been applied to the master and release/2.6 branch (bugfix).
commit a3d8c40260930ab82ca5d9d71796a7763e74a03d (master) commit a7f5f570bfe30b86b5c7088450f96b77c86dca18 (release/2.6)
Author: Selva Nair Date: Mon Nov 3 15:59:56 2025 +0100
openvpnserv: Disallow stdin as config unless user is authorized
Signed-off-by: Selva Nair <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34156.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: openvpnserv: Disallow stdin as config unless user is authorized
......................................................................
openvpnserv: Disallow stdin as config unless user is authorized
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34156.html
---
M src/openvpnserv/validate.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/43/1343/2
src/openvpnserv/validate.c +5 -0
@@ -68,6 +68,11 @@const WCHAR *config_file =NULL ;WCHAR config_dir[MAX_PATH ]; +/* fname = stdin is special: do not treat it as a relative path */ +if (wcscmp (fname,L"stdin" ) ==0 ) + { +return FALSE; + }/* convert fname to full path */ if (PathIsRelativeW (fname)) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Gerrit-Change-Number: 1343
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email )
Change subject: openvpnserv: Disallow stdin as config unless user is authorized
......................................................................
openvpnserv: Disallow stdin as config unless user is authorized
Reported by: <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1343
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg34156.html
---
M src/openvpnserv/validate.c
1 file changed, 5 insertions(+), 0 deletions(-)
src/openvpnserv/validate.c +5 -0
@@ -68,6 +68,11 @@const WCHAR *config_file =NULL ;WCHAR config_dir[MAX_PATH ]; +/* fname = stdin is special: do not treat it as a relative path */ +if (wcscmp (fname,L"stdin" ) ==0 ) + { +return FALSE; + }/* convert fname to full path */ if (PathIsRelativeW (fname)) {
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1343?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I356faeebfade1eed9b40d6700b13621c357ec5ac
Gerrit-Change-Number: 1343
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>